@tool
extends EditorInspectorPlugin

const ModifiersEditor = preload("res://addons/gameplay-ability-system/Scripts/Inspector/Effect/modifiers_editor.gd")


func _can_handle(object: Object) -> bool:
	return (object is Effect) or (object is Execution)
	

func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
	if type == TYPE_ARRAY and name == "modifiers":
		add_property_editor(name,ModifiersEditor.new(),true)
		return true
	
	return false
